package A01_Map;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;

public class Demo4amba {
public static void main(String[] args) {
            Map<String,String> map = new HashMap<>();
            map.put("1","2");
            map.put("3","4");
            map.put("5","6");

            map.forEach(new BiConsumer<String, String>() {
                @Override
                public void accept(String key, String value) {
                    System.out.println(key + "=" + value);
                }
            });
    System.out.println("----------");
    map.forEach((String key, String value)-> {

            System.out.println(key + "=" + value);
        }
    );
    System.out.println("-----------");
    map.forEach((key,value)-> System.out.println(key + "=" + value));


            }
        }
